<?php


namespace App\Api\V1\Controllers;


use App\Http\Controllers\Controller;
use App\User;
use Illuminate\Support\Facades\Auth;

class RbacController extends Controller {
    protected $middleware = [
        [
            'middleware' => \Xy\Rbac\Middleware\AccessAuthenticateMiddleware::class,
            'options' => [],
        ]
    ];
    
    public function __construct() {
        Auth::setUser(new User(['id' => 1]));
    
    }
    
    public function index(){
        return 'hello world';
    }
}